const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 创建 token 的快捷访问
  username: state => state.user.userInfo.username, // 映射 username 的快捷访问
  staffPhoto: state => state.user.userInfo.staffPhoto, // 映射 staffPhoto 的快捷访问
  userId: state => state.user.userInfo.userId, // 映射 userId 的快捷访问
  routerList: state => state.menu.menuList // 映射 路由表 的快捷访问
}
export default getters
